#ifndef SNAKE_H
#define SNAKE_H

#include "Base.h"
#include "process.h"
//#include <vector>
//#include "Math\MathTypes.h"
//#include "Math\color.h"
#include "Math\Vector4.h"
#include "Timer.h"



class CSnake: public CProcess
{
public:
	CSnake(): m_speed(5) , m_CurrPos(v2fZERO),m_CurrDir(RIGHT), m_deltaT(0), m_fps(0), m_deltaAccum(0), m_alive(1) {};
	~CSnake();
	void		Init				();
	void		Deinit				();
	void		Update				(float dt,float fps);
	void		RenderScene			();
	void		RenderScene2D		();
	uint32		RenderDebugInfo		();

private:
	Vect2f			m_CurrPos;
	float			m_speed;
	uint8			m_CurrDir;
	enum			m_eDir{UP=0, DOWN,RIGHT,LEFT};
	float			m_deltaT;
	float			m_fps;
	float			m_deltaAccum;
	bool			m_alive;

};

#endif